// eee.Sheffield.PZ.Imaging
//
// Copyright ?Ping Zou, 2007
// sg71.cherub@gmail.com

using System;
using System.Collections.Generic;
using System.Text;
using eee.Sheffield.PZ.Math;
using System.Drawing;
using System.Drawing.Imaging;

namespace eee.Sheffield.PZ.Imaging.ImageFilter
{
    public class Temp
    {
        public void Apply(Bitmap srcImg)
        {
            int width = srcImg.Width;
            int height = srcImg.Height;
            for (int x = 0; x < width; x++)
            {
                for (int y = 0; y < height; y++)
                {
                    if (srcImg.GetPixel(x, y).Equals(Color.FromArgb(0, 255, 255)))
                    {
                        srcImg.SetPixel(x, y, Color.FromArgb(255, 0, 0));
                    }
                    if (srcImg.GetPixel(x, y).Equals(Color.FromArgb(255, 127, 255)))
                    {
                        srcImg.SetPixel(x, y, Color.FromArgb(0, 0, 255));
                    }
                    if (srcImg.GetPixel(x, y).Equals(Color.FromArgb(255, 255, 0)))
                    {
                        srcImg.SetPixel(x, y, Color.FromArgb(0, 255, 0));
                    }
                }
            }
        }
    }
}
